package com.wangc.study.reflect;

/**
 * @author wangC
 * @create 2020-05-26 下午10:55
 * @Description
 **/
public class Student extends Person {

    public String className;
    private String address ;

    public Student() {
    }

    public Student(String className, String address) {
        this.className = className;
        this.address = address;
    }

    public Student(int age, String name) {
        super(age, name);
    }

    private Student(String name, int age,String address) {
        super(age, name);
        this.address = address;

    }

    public Student(int age, String name, String className, String address) {
        super(age, name);
        this.className = className;
        this.address = address;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    private void add(int a, int b) {
        System.out.println((a + b));
    }

    @Override
    public String toString() {
        return "Student{" +
                "className='" + className + '\'' +
                ", address='" + address + '\'' +
                ", age=" + age +
                ", name='" + name + '\'' +
                '}';
    }
}
